package com.woniuxy03;

/**
 * @author 作者
 * @create 2025-07-22 14:10
 */
public class Book {
    String name;
    String isbn;
    String author;
    String publisher;
    double price;

    public Book() {
    }

    public Book(String name, String isbn, String author, String publisher, double price) {
        this.name = name;
        this.isbn = isbn;
        this.author = author;
        this.publisher = publisher;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }


    public String showInfo(){
        return "name:"+name+",isbn"+isbn+",author"+author+",publisher"+publisher+",price"+price;
    }
}
